import request from "@/utils/request.js";

export const queryLikeClassesByClassNameService = (classNamePartial) => {
  return request.get("/classes/findbyclassnamepartial", {
    params: { classNamePartial },
  });
};

export const queryClassByMajorNameService = (majorName, classNamePartial) => {
  return request.get("/classes/findbymajorname", {
    params: { majorName, classNamePartial },
  });
};

export const listClassesByMajor = (majorId) => {
  return request.get("/classes/findbymajorid", { params: { majorId } });
};
